import JmTabbar from '@/components/JmTabbar'

const Home = () => import('@/pages/Home')
const Mall = () => import('@/pages/Mall')
const Cart = () => import('@/pages/Cart')
const Mine = () => import('@/pages/Mine')
const NotFound = () => import('@/pages/NotFound')
const Product = () => import('@/pages/Product')

export default [
  {
    path: '/',
    redirect: '/home'
  }, {
    path: '*',
    redirect: '/404'
  }, {
    path: '/home',
    isTabbar: true,
    title: '首页',
    icon: '&#xe618;',
    components: {
      default: Home,
      tabbar: JmTabbar
    }
  }, {
    path: '/404',
    components: {
      default: NotFound
    }
  }, {
    path: '/mall',
    isTabbar: true,
    title: '拼团',
    icon: '&#xe635;',
    components: {
      default: Mall,
      tabbar: JmTabbar
    }
  }, {
    path: '/product',
    components: {
      default: Product
    }
  }, {
    path: '/cart',
    isTabbar: true,
    title: '购物车',
    icon: '&#xe617;',
    components: {
      default: Cart,
      tabbar: JmTabbar
    }
  }, {
    path: '/mine',
    isTabbar: true,
    title: '我的',
    icon: '&#xe619;',
    components: {
      default: Mine,
      tabbar: JmTabbar
    }
  }
]
